package mainpackage;

/**
 * @author Vova for storing Colors of Categories
 */
public enum Color {

	RED, BLUE, GREEN, YELLOW, CYAN, PURPLE;

	/**
	 * @return next color
	 * @throws NoColorsLeftException
	 *             if next of last color is asked.
	 */
	/*
	 * public Color nextColor() throws NoColorsLeftException{ int index =
	 * ordinal()+1; try { return values()[index]; } catch
	 * (ArrayIndexOutOfBoundsException e) { throw new NoColorsLeftException(); }
	 * }
	 * 
	 * public Color previousColor() { int index = ordinal()-1; return
	 * values()[index]; }
	 */
}
